<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>添加轮播图</title>
        <script src="/layui/layui.js"></script>
        <script src="/jquery/jquery-3.2.1.min.js"></script>
        <link rel="stylesheet" href="/layui/css/layui.css">
        <link rel="stylesheet" href="/css/advertising/slideshowManagement/addSlideshow/add-slideshow.css">
        <script src="/js/advertising/slideshowManagement/addSlideshow/add-slideshow.js"></script>
    </head>
    <body>
        <div class="list">
            <div class="list-left">
                <div class="list-left-left"></div>
                <p class="list-left-right" id="title">添加轮播图</p>
            </div>
            <div class="list-right">
                <div class="list-right-left layui-btn layui-icon layui-icon-refresh" id="refresh">&nbsp;刷新</div>
                <div class="list-right-right layui-btn layui-icon layui-icon-left" id="goBack">&nbsp;返回</div>
            </div>
        </div>
        <div class="slideshowBox">
            <form class="layui-form">
                <div class="layui-form-item">
                    <label class="layui-form-label">轮播图名称:</label>
                    <div class="layui-input-block">
                        <input type="text" name="imgTitle" id="imgTitle" placeholder="请输入名称" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">上线/下线：</label>
                    <div class="layui-input-block">
                        <input name="display" checked type="radio" lay-filter="display" title="上线" value="2" />
                        <input name="display" type="radio" lay-filter="display" title="下线" value="3" />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">轮播图描述:</label>
                    <div class="layui-input-block">
                        <input type="text" name="describe" id="describe" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">开始时间：</label>
                    <div class="layui-input-block">
                        <input type="text" name="startDate" id="startDate"  class="layui-input" />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">到期时间：</label>
                    <div class="layui-input-block">
                        <input type="text" name="expireDate" id="expireDate"  class="layui-input" />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">上传图片：</label>
                    <div class="layui-input-block">
                        <button type="button" id="uploadImage"  class="layui-btn" >上传图片</button>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">图片：</label>
                    <div class="layui-input-block">
                        <img id="currentImage" src="">
                    </div>
                </div>
                <div class="layui-form-item" style="display: none">
                    <label class="layui-form-label">内容链接：</label>
                    <div class="layui-input-block">
                        <input type="text" name="imgAddress" disabled id="imgAddress" class="layui-input">
                        <input type="hidden" id="imgType" name="imgType">
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">内容备注：</label>
                    <div class="layui-input-inline">
                        <textarea name="remarks" id="remarks" class="layui-textarea " ></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button type="submit" class="layui-btn sub" lay-filter="sub" lay-submit>提交</button>
                        <input type="hidden" id="createId" name="createId">
                    </div>
                </div>
            </form>
        </div>
    </body>
</html>